package com.qf.flash.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.qf.dblib.dao.impl.UserMgr;


/**
 * 2020/2/25 11:11
 */
public class Pay2SponsorBean implements Parcelable {
    private String userId = UserMgr.getInstance().getLoginUser().getUid();  //	是	String	当前登录用户id
    private String payType; //	否	String	支付方式，0代金点，1微信，2支付宝，3代金点+微信，4代金点+支付宝，免费时可不传
    private String teamName;//	是	String	队名
    private String startTime;//	是	String	游戏时间
    private String password;//	否	String	密码
    private String num;        //	否	Int	人数
    private String playId;  //	否	String	剧本id
    private String playName;  //	否	String	剧本名称
    private String playType;//	是	Integer	游戏类型id
    private String playTypeName;//	是	Integer	游戏类型名称
    private double money;   //	否	Integer	费用，免费传0
    private int isShopEnter;   //	商家发起组队

    public Pay2SponsorBean() {
    }



    protected Pay2SponsorBean(Parcel in) {
        userId = in.readString();
        payType = in.readString();
        teamName = in.readString();
        startTime = in.readString();
        password = in.readString();
        num = in.readString();
        playId = in.readString();
        playName = in.readString();
        playType = in.readString();
        playTypeName = in.readString();
        money = in.readDouble();
        isShopEnter = in.readInt();
    }

    public static final Creator<Pay2SponsorBean> CREATOR = new Creator<Pay2SponsorBean>() {
        @Override
        public Pay2SponsorBean createFromParcel(Parcel in) {
            return new Pay2SponsorBean(in);
        }

        @Override
        public Pay2SponsorBean[] newArray(int size) {
            return new Pay2SponsorBean[size];
        }
    };

    public String getPlayTypeName() {
        return playTypeName == null ? "未选择" : playTypeName;
    }

    public void setPlayTypeName(String playTypeName) {
        this.playTypeName = playTypeName;
    }

    public String getPlayName() {
        return playName == null ? "未选择" : playName;
    }

    public void setPlayName(String playName) {
        this.playName = playName;
    }

    public String getUserId() {
        return userId == null ? "" : userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPayType() {
        return payType == null ? "" : payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getTeamName() {
        return teamName == null ? "" : teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public String getStartTime() {
        return startTime == null ? "" : startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getPassword() {
        return password == null ? "" : password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getNum() {
        return num == null ? "" : num;
    }

    public String getPlayId() {
        return playId == null ? "" : playId;
    }

    public void setPlayId(String playId) {
        this.playId = playId;
    }

    public String getPlayType() {
        return playType == null ? "" : playType;
    }

    public void setPlayType(String playType) {
        this.playType = playType;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public int getIsShopEnter() {
        return isShopEnter;
    }

    public void setIsShopEnter(int isShopEnter) {
        this.isShopEnter = isShopEnter;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(userId);
        parcel.writeString(payType);
        parcel.writeString(teamName);
        parcel.writeString(startTime);
        parcel.writeString(password);
        parcel.writeString(num);
        parcel.writeString(playId);
        parcel.writeString(playName);
        parcel.writeString(playType);
        parcel.writeString(playTypeName);
        parcel.writeDouble(money);
        parcel.writeInt(isShopEnter);
    }
}
